package scr;

public class Example28 {
    public static void main(String[] args) {
        int[] arr = {4, 1, 6, 3, 9, 8};
        int max = getMAX(arr);
        System.out.println("max=" + max);
    }
    static int getMAX(int[] arr){
        int max = arr[0];
        for (int x = 1; x < arr.length; x++ ){
            if (arr[x] > max){
            }
        }
        return max;
    }
}
